#include<string>
#include<iostream>
using namespace std;
int main(){
	string a; 
	string b;
	int count=0;
	int i=0;
	while(1){
		cin>>a;
		if(a=="exit"){
			break;
		}
		while(a[i]!='\0'){
			if(a[i]=='1'||a[i]=='2'||a[i]=='3'||a[i]=='4'||a[i]=='5'||a[i]=='6'||a[i]=='7'||a[i]=='8'||a[i]=='9'||a[i]=='0'){
				count++;
				if(count==2){
					b=b+a[i];
					break;
				}
			}
			i++; 
		}
	}
	cout<<b; 
}
